package com.ruoyi.littleRedBook.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.littleRedBook.domain.pojo.ChatMessage;

import java.util.List;

public interface ChatService extends IService<ChatMessage> {
    AjaxResult sendMessage(ChatMessage message);

    AjaxResult getChatHistory(Long otherUserId, Integer pageNum, Integer pageSize);

    AjaxResult markMessagesAsRead(Long otherUserId);

    AjaxResult getUnreadCount(Long otherUserId);

    AjaxResult getContacts();
}
